package com.zcj.demo.web.errors;


/**
 * @author 68300119
 */
public class AuthException extends RuntimeException {

    private static final long serialVersionUID = -8916053097424091043L;

    private String message;

    public AuthException(String msg) {
        super(msg);
        this.message = msg;
    }

    public AuthException(Throwable cause) {
        super(cause);
    }

    public AuthException() {
        this.message = "用户没有权限（令牌、用户名、密码错误）。";
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
